package cn.smxy.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("request_log")
public class RequestLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID,value = "request_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long requestId;

    private String moduleName;

    private String methodName;

    private String requestUrl;

    private String requestMode;

    private String userIp;

    private String userName;

    private Date createTime;
}
